$number = Input ( <max digits>, [wait in seconds], [enter key], [esc key], [mask] )
Online IVR Tutorial


Parameters

Return Value

Remarks

Example

1) When mode of input() is through telephone keypad:
      MAIN:     answer     Play "Welcome.wav"     $num = Input(2,3,#,*,"02468")     Play "YouEntered.wav"     Play Num2Wav($num)     Hangup     goto MAIN
 

2) When mode of input() is through speech recognition:
      MAIN:     answer     //Enable grammar and set the words to be recognized     .....     $retry = 3     while $retry > 1       $retry -= 1       //Accept a number between 0 - 9       play "song.wav"         while true             $Key = input(1,7)             if $InputMode == "S"                 if srConfidence() >= 100                     break                 endif             else                 break             endif         endwhile         if $InputMode == "S"             //Perform a translation to the appropriate keypress             .....         endif         .....     endwhile     play "thank.wav"     hangup     goto MAIN
See also Accept()